﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="market.aspx.vb" Inherits="nigfoodlovers.market" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="SqlDataSource2">
        <Columns>
            <asp:BoundField DataField="Ingredient" HeaderText="Ingredient" 
                SortExpression="Ingredient" />
            <asp:BoundField DataField="Market_Name" HeaderText="Market_Name" 
                SortExpression="Market_Name" />
            <asp:HyperLinkField DataNavigateUrlFields="location" 
                DataNavigateUrlFormatString="http://maps.google.co.uk/maps?q={0}" 
                DataTextField="Location" HeaderText="Location" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
        ConnectionString="<%$ ConnectionStrings:nflconnectionString %>" 
        ProviderName="<%$ ConnectionStrings:nflconnectionString.ProviderName %>" 
        SelectCommand="SELECT [Ingredient], [Market Name] AS Market_Name, [Location] FROM [market]">
    </asp:SqlDataSource>
</asp:Content>
